package thinkingInJava.nesting;

// 接口有公共代码想共享给所有派生类可以用接口内部类，接口内部类默认都是 static 的
public interface ClassInInterface {
	  void howdy();
	  class Test implements ClassInInterface {
	    public void howdy() {
	      System.out.println("Howdy!");
	    }
	    public static void main(String[] args) {
	      new Test().howdy();
	    }
	  }
	} /* Output:
	Howdy!
	*///:~

class Tt extends ClassInInterface.Test {
	public void howdy(){
		super.howdy();
		// add something
	}
}